Directory Sequence Error

Hi all,

I have a script that creates standard groups for a project, sets access to the groups and fills a module with the information.
But every second time or so I get a "Directory Sequence Error" and the groups are not created.

Any ideas?

Karl
kabr - Fri Jul 16 09:19:22 EDT 2010

Re: Directory Sequence Error
llandale - Fri Jul 16 10:21:38 EDT 2010

Perhaps you need to issue "string ErrMess = saveDirectory()" after making changes.

Re: Directory Sequence Error
kabr - Mon Jul 19 04:12:55 EDT 2010

llandale - Fri Jul 16 10:21:38 EDT 2010
Perhaps you need to issue "string ErrMess = saveDirectory()" after making changes.

Thanks for your comment, Louie, but that's what I do.
And when I print this ErrMess I get "Directory Sequence Error".
Not always but every second time or so.

Karl

Re: Directory Sequence Error
Reik_Schroeder - Mon Jul 19 05:14:55 EDT 2010

Hi Karl,

I know this problem occours, if more than one user is trying to use saveDirectory.
So if another user has changed user list after last call of loadDirectory, you cannot save it.

My solution is to try to use saveDirectory. If it fails, use loadDirectory to refresh user (groups) list. Then do the changes again and try again to save directory.
I'm trying 5 times to write ... if still fails an error message is raised to the user.

I hope that helps you to solve your problem.

Regards from homeland Berlin ;-)
Reik